package com.ibangnuo.manage.dao.employee;

import com.ibangnuo.framework.domain.Agent;
import com.ibangnuo.framework.domain.Employee;
import com.ibangnuo.framework.domain.request.employee.EmployeeRequest;
import com.ibangnuo.framework.domain.request.employee.SalesmanQueryRequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Map;

/**
 * @Author:ly
 * @Data:2019/12/27 11:44
 * @Verdion:1.0
 */

public interface EmployeeRepository extends JpaRepository<Employee,String> {


    void deleteByUserId(String id);

    Employee findByUserId(String id);
    List<Employee> findByAgentIdAndIsDelete(String agentId,int isDelete);

}
